package com.desay.pangoo.itmt.entity;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

/**
 * 记录某个提案的贡献度已经被计算分配给相关成员
 * @author uids1175
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "contribution_calculation")
@Data

public class ContributionCalEntity  extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", columnDefinition = "bigint COMMENT '主键'")
    private Long id;

    @Column(name = "review_id", columnDefinition = "bigint COMMENT '关联的评审提案Id'")
    private Long reviewId;

    @Column(name = "cal_date", columnDefinition = "datetime COMMENT '计算时的日期'")
    private Date calDate;


}
